﻿#ifndef TIANYU_CLIENT_MSG_
#define TIANYU_CLIENT_MSG_

#include <string>

class CClientSocketMsg
{
public:
	CClientSocketMsg()
	{
		clear();
	}
	void clear()
	{
		msg_.clear();
		fd_ = 0;
		m_protocol_number = 0;
	}
	CClientSocketMsg(const std::string& msg, int32_t fd, uint32_t msg_id)
	{
		msg_ = msg;
		fd_ = fd;
		m_protocol_number = msg_id;
	}
	void SetMsg(const std::string& msg, int32_t fd, uint32_t msg_id)
	{
		msg_ = msg;
		fd_ = fd;
		m_protocol_number = msg_id;
	}
	void Copy(const CClientSocketMsg& msg)
	{
		msg_ = msg.msg_;
		fd_ = msg.fd_;
		m_protocol_number = msg.m_protocol_number;
	}
	~CClientSocketMsg() {}
public:
	std::string msg_;
	int32_t fd_;
	uint32_t m_protocol_number;
};

#endif 